package com.fr.chart.marker;

import com.fr.base.core.GraphHelper;
import com.fr.base.xml.XMLPrintWriter;
import com.fr.base.xml.XMLableReader;
import java.awt.Graphics2D;

public class CrossMarker extends Marker
{
  private static final long serialVersionUID = -7044531976270117593L;
  public static final String XML_TAG = "CrossMarker";

  public void paintMarker(Graphics2D paramGraphics2D, double paramDouble1, double paramDouble2)
  {
    GraphHelper.drawLine(paramGraphics2D, paramDouble1 - this.size, paramDouble2, paramDouble1 + this.size, paramDouble2);
    GraphHelper.drawLine(paramGraphics2D, paramDouble1, paramDouble2 + this.size, paramDouble1, paramDouble2 - this.size);
  }

  public void readXML(XMLableReader paramXMLableReader)
  {
    super.readXML(paramXMLableReader);
  }

  public void writeXML(XMLPrintWriter paramXMLPrintWriter)
  {
    paramXMLPrintWriter.startTAG("CrossMarker");
    super.writeXML(paramXMLPrintWriter);
    paramXMLPrintWriter.end();
  }

  public String getMarkerType()
  {
    return "CrossMarker";
  }
}